#include "../include/structure.h"

// 添加epoll监听
int addEpoll(int epoll_fd, int fd){
	struct epoll_event event_socket;
	event_socket.events = EPOLLIN;			/* 读取 */
	event_socket.data.fd = fd;	/* 指定文件描述符 */
	epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &event_socket);

    return 0;
}